import request from '@/js/request'

export default {
	// 消息大厅 最新消息
	getNewsInfo: (data) => request({
		method: 'POST',
		url: '/api/dev_message/latest',
		data
	}),
	// 消息大厅 未回复
	getNoReplay: (data) => request({
		method: 'POST',
		url: '/api/dev_message/index',
		data
	}),
	// 消息详情
	infoDetail: (data) => request({
		method: 'GET',
		url: '/api/dev_message/detailByLawyer',
		data
	}),

	// 评论列表 www.fahuren.com/api/dev_message/replyByLawyer?m_id=1&page=1&page_size=
	commentList: (data) => request({
		method: 'GET',
		url: '/api/dev_message/replyByLawyer',
		data
	}),

	// 消息大厅中 点赞
	giveLike: (data) => request({
		method: 'POST',
		url: '/api/dev_message/likes',
		data
	}),

	// 发布评论
	publishComment: (data) => request({
		method: 'POST',
		url: '/api/dev_message/submitReplyByLawyer',
		data
	}),
}